<?php


use Phinx\Seed\AbstractSeed;

class AdminPermissionUserSeeder extends AbstractSeed
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * https://book.cakephp.org/phinx/0/en/seeding.html
     */
    public function run (): void {
        $data = [
            'permission_id' => 1,
            'user_id'       => 1,
            'create_time'   => date('Y-m-d H:i:s')
        ];
        $table = $this->table('admin_permission_user');
        $table->truncate();
        $table->insert($data)->save();
    }
}
